package com.lingx.service.query;

import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.lingx.model.IContext;
import com.lingx.model.IPerformer;
import com.lingx.service.ModelService;
@Component
public class RuleCondition implements ICondition {
	@Resource
	private ModelService modelService;

	@Override
	public String getCondition( Map<String, Object> params,IContext context,IPerformer performer  ){
		String ruleSql=this.modelService.getRuleDataAuth(context.getEntity(), context.getUserBean());
		return ruleSql;
	}


}
